import { RequestAxios } from "@/utils/request"
// 获取地址信息列表
export const getAddressListAPI = () => {
    return RequestAxios.get<AddressInfo[]>("/member/address")
}

// 获取地址信息列表
export const setDefaultAddressAPI = (id: string, data: AddAddressParams) => {
    return RequestAxios.put<null>(`/member/address/${id}`, data)
}

// 删除地址信息
export const deletetAddressAPI = (id: string) => {
    return RequestAxios.delete<null>(`/member/address/${id}`)
}